import type { PatentIdentifier, PatentKeys } from '@/types'

export const expendIdentifiers: (Partial<Omit<PatentIdentifier, 'key'>> & { key: string, keys?: PatentKeys[] })[] = [
  { key: 'title', name: '标题', alias: 'TI' },
  {
    key: 'S2',
    name: '标题/摘要',
    alias: 'TA',
    keys: ['title', 'abstract_ab'],
  },
  {
    key: 'S3', name: '标题/摘要/权利要求', alias: 'TAC', keys: ['title', 'abstract_ab', 'claims'],
  },
  {
    key: 'S4', name: '标题/摘要/权利要求/说明书', alias: 'TACD', keys: ['title', 'abstract_ab', 'claims', 'description'],
  },
  {
    key: 'S7',
    name: 'S7',
    keys: ['title', 'abstract_ab', 'applicants', 'assignees', 'inventors', 'application_number', 'publication_number'],
  },
  {
    key: 'patent_databases', name: '专利数据库', alias: 'PDB', type: 'text',
  },
  {
    key: 'patent_databases', name: '专利数据库(精确)', alias: 'PDBE', type: 'term',
  },
  { key: 'publication_date', name: '公开年', type: 'date' },
  { key: 'application_date', name: '申请年', type: 'date' },
]
